cd /root/run/go/code/common

git pull

cd /root/run/go/code/calculate_server

git pull

export GOPRIVATE="jihe.common"
export GOPROXY=https://goproxy.cn

GO111MODULE=on go build -o calculate_server cmd/main.go

ssh prd1 "supervisorctl stop calculate_server"

scp calculate_server configs/production.yml prd1:/root/run/calculate_server

ssh prd1 "supervisorctl start calculate_server"

#ssh prd2 "supervisorctl stop calculate_server"
#
#scp calculate_server configs/production.yml prd2:/root/run/calculate_server
#
#ssh prd2 "supervisorctl start calculate_server"
#
#ssh prd3 "supervisorctl stop calculate_server"
#
#scp calculate_server configs/production.yml prd3:/root/run/calculate_server
#
#ssh prd3 "supervisorctl start calculate_server"